/**************************************************************
 * Ben Stephenson       07025656
 * Mark Renney          07010390
 * Laurie Potts         07009314
 * Michael Peeke-Vout   07014312
 *
 * CM0034 Industrial Case Project
 * Conveyor Belt
 * global_decs.h
 * 28/02/2011
 * Updated - 09/05/11 
 **************************************************************/

#ifndef __GLOBAL_DECS_H
#define __GLOBAL_DECS_H

#include <stdint.h>


/*
*********************************************************************************************************
*                                            SYSTEM STATE
*********************************************************************************************************
*/

#define  RUNNING                                    0
#define  EMERGENCY_STOP                             1
#define  PAUSE                                      2
#define  STOP                                       3
#define  STOPPING                                   4


uint8_t getState(void);
void setState(uint8_t);



#endif